package com.wenyu.wenyuyuedu.server.homepager;

import com.wenyu.wenyuyuedu.bean.homepager.AllAttentionBean;
import com.wenyu.wenyuyuedu.bean.homepager.MyAttentionInformBean;
import com.wenyu.wenyuyuedu.bean.homepager.NewAllAttentionBean;

import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by lenovo on 2017/3/7.
 * 首页--我的全部的接口
 */

public interface Home_AllAtten_Server {
    /*首页--我的关注的一级界面*/
    @GET("/forum/index/index.html")
    Call<AllAttentionBean> getIndex(@Query("token") String token, @Query("page") int page,
                                    @Query("judge") int judge);

    /*详情页*/
    @GET("/forum/index/detail.html")
    Call<NewAllAttentionBean> getAttentionDeatil(@Query("token") String token, @Query("id") String id, @Query("page") int page);

    /*举报的接口*/
    @FormUrlEncoded
    @POST("/forum/index/accuse.html")
    Call<MyAttentionInformBean> postInform(@Field("token") String token, @Field("to_uid") String to_uid,
                                           @Field("object_id") String object_id, @Field("object_type") String object_type,
                                           @Field("type") String type);
}
